{% extends "base.html" %}

{% block content %}

<div id="item_form">
	<form action="/item" method="post">
		<select name="type" size="1">
			<option value="in">Thu</option>
			<option value="out">Chi</option>
		</select>
		<input type="text" name="amount" id="input_amount" value="Số lượng"/>
		<input type="text" name="date" id="input_date" value="Chọn ngày"/>
		<select name="category" size="1">
			{% for cat in categories %}
				<option value="{{cat.key.id}}">{{cat.name}}</option>
			{% endfor %}
		</select>
		<input type="text" name="note" id="input_note" value="Ghi chú"/>
		<input type="submit" name="submit" id="submit" value="Add category"/>
	</form>
</div><!-- /#item_form -->

{% endblock %}
